chrome.runtime.onInstalled.addListener(() => {
    chrome.contextMenus.create({
      id: 'quick-gitlab-login',
      title: 'Gitlab Login',
      type: 'normal',
    });
});

chrome.contextMenus.onClicked.addListener((item, tab) => {
  chrome.tabs.sendMessage(tab.id, 'login').then(res => {
    console.log(res)
  }).catch(err => {
    console.log(err)
  })
});
